base: add half version of CMYK formats
authorØyvind Kolås <pippin@gimp.org>
Sat, 1 Dec 2018 20:35:46 +0000 (21:35 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sat, 1 Dec 2018 20:35:46 +0000 (21:35 +0100)
babl/base/model-cmyk.c

index a550427540ba05feb20c04a404d5e5deedd3a6c7..c689d28c96300de2aa08f0b33221031b4f9f84b1 100644 (file)
@@ -924,6 +924,28 @@ babl_base_model_cmyk (void)
     babl_component ("A"),
     NULL
   );
+
+  babl_format_new (
+    "name", "cmyk half",
+    babl_model ("cmyk"),
+    babl_type ("half"),
+    babl_component ("cyan"),
+    babl_component ("magenta"),
+    babl_component ("yellow"),
+    babl_component ("key"),
+    NULL
+  );
+  babl_format_new (
+    "name", "cmykA half",
+    babl_model ("cmykA"),
+    babl_type ("half"),
+    babl_component ("cyan"),
+    babl_component ("magenta"),
+    babl_component ("yellow"),
+    babl_component ("key"),
+    babl_component ("A"),
+    NULL
+  );
   babl_format_new (
     "name", "camayakaA u16",
     babl_model ("camayakaA"),
@@ -980,6 +1002,27 @@ babl_base_model_cmyk (void)
     babl_component ("Key"),
     NULL
   );
+  babl_format_new (
+    "name", "CMYKA half",
+    babl_model ("CMYKA"),
+    babl_type ("half"),
+    babl_component ("Cyan"),
+    babl_component ("Magenta"),
+    babl_component ("Yellow"),
+    babl_component ("Key"),
+    babl_component ("A"),
+    NULL
+  );
+  babl_format_new (
+    "name", "CMYK half",
+    babl_model ("CMYK"),
+    babl_type ("half"),
+    babl_component ("Cyan"),
+    babl_component ("Magenta"),
+    babl_component ("Yellow"),
+    babl_component ("Key"),
+    NULL
+  );
 
   babl_format_new (
     "name", "CMYK u8",